package it.unibo.mycruise.chief.presentation.swing;

import it.unibo.convoycruisecontrol.chiefboatsubsystem.ControlPanel;
import it.unibo.measures.KnotsToMetersSecond;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JTextField;

public class ControlPanelController {

	private ControlPanel controlPanel = null;

	public ControlPanelController(ControlPanel cp)
	{
		this.controlPanel = cp;
	}
	
	
	public void startConvoy()
	{
		controlPanel.startConvoy();
	}
	
	public void stopConvoy()
	{
		controlPanel.stopConvoy();
	}
	
	public void setConvoySpeed(float speed)
	{
		controlPanel.setSpeed(speed);
	}
}
